@import "../mixins/index.scss";
@import "../variables/default.scss";

.j-menu {
  &__title {
    font-size: $jlf-detail-font-size;
    line-height: $jlf-detail-line-height;
    color: $color-text-title;
    font-weight: 600;
  }
  &__content {
    margin-top: 10px;
    padding: 10px;
    background-color: $color-bg;
    border-radius: $border-radius-lg;
    box-shadow: 0px 0px 18px 0px rgb(68 89 118 / 25%);
  }

  &__list {
    padding: 0;
    @include display-flex();

    &-item {
      position: relative;
      @include display-flex();
      @include align-items(center);
      padding: 10px;
      box-sizing: border-box;

      &--left {
        width: 60px;
        height: 60px;
        min-width: 60px;
      }

      img {
        width: 60px;
        height: 60px;
        min-width: 60px;
      }

      &--right {
        margin-left: 10px;
        position: relative;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        &__text {
          margin-left: 10px;
          p:nth-child(2) {
            text-align: left;
            margin-top: 12px;
            font-size: 14px;
            font-family: Source Han Sans CN;
            font-weight: 400;
            line-height: 24px;
            color: #9aa0a3;
          }
        }
      }

      &--icon {
        // 右箭头
        &:after {
          content: " ";
          height: 6px;
          width: 6px;
          border-width: 2px 2px 0 0;
          border-color: #ccc;
          border-style: solid;
          transform: rotate(45deg);
          position: absolute;
          margin-top: -4px;
          top: 50%;
          right: 22px;
        }
      }
    }
  }

  &__list--column {
    flex-direction: column;
    // 下划线
    .j-menu__list-item::after {
      position: absolute;
      bottom: 0;
      left: 0;
      content: "";
      height: 1px;
      width: 95%;
      transform: scaleY(0.5);
      background-color: #e3e5e9;
    }

    &:last-child::after {
      height: 0;
    }
  }

  &__list--row {
    flex-direction: row;
    @include flex-wrap(wrap);

    .j-menu__list-item {
      width: 25%;
      padding: 10px;
      flex-direction: column;
      &-name {
        text-align: center;
        min-width: 70px;
        margin-top: 10px;
        font-size: 14px;
        font-family: Source Han Sans CN;
        font-weight: 400;
      }
    }
  }
}
